﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCLHShouLiBTNS.ascx.cs" Inherits="Web.Controls.LAIHAN.UCLHShouLiBTNS" %>
<%--废弃byguodengjie --%>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<script src="../../JS/layer/layer.js"></script>
<script type="text/javascript">


    function UCLHShouLiBTNS_Complete(rs) {
        var arr = rs.split('|');
        var type = arr[0];
        var state = arr[1];
        if (state != "0") {
            alert(arr[2]);
        } else {
            //window.close();
            layer.alert(arr[2],
                function() {
                    var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                    parent.layer.close(index); //再执行关闭   
                });
            //if (typeof (SJ) == 'function') {
            //    SJ(type);
            //}
        }
    }

</script>
<div style="text-align: center;">
    <table style="margin: 0px auto">
        <tr>

            <td align="center">
                <dx:ASPxButton ID="BtnBack" runat="server" Text="退回" UseSubmitBehavior="false" AutoPostBack="false">
                    <ClientSideEvents Click="function(s,e){UCLHShouLiBTNS_ASPxCallback1.PerformCallback('th');}"/>
                </dx:ASPxButton>
                <dx:ASPxButton ID="BtnSL" runat="server" Text="受理" UseSubmitBehavior="false" AutoPostBack="false">
                    <ClientSideEvents Click="function(s,e){UCLHShouLiBTNS_ASPxCallback1.PerformCallback('sl');}"/>
                </dx:ASPxButton>
                <dx:ASPxButton ID="BtnBSL" runat="server" Text="不受理" UseSubmitBehavior="false" AutoPostBack="false">
                    <ClientSideEvents Click="function(s,e){UCLHShouLiBTNS_ASPxCallback1.PerformCallback('bsl');}"/>
                </dx:ASPxButton>
                <dx:ASPxButton ID="ASPxButton1" runat="server" Text="放弃" UseSubmitBehavior="false" AutoPostBack="false">
                    <ClientSideEvents Click="function(s,e){window.close();}"/>
                </dx:ASPxButton>
            </td>
        </tr>
    </table>
    <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="UCLHShouLiBTNS_ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){UCLHShouLiBTNS_Complete(e.result);}"></dx:ASPxCallback>
</div>